<template>
	<view class="page">
		<workerList @hanldeNext="hanldeNext" :num="props.num" />
		<suspend icon="/static/image/service.jpg"></suspend>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import { useStore } from '@/store/useCounterStore';
	import { onLoad } from '@dcloudio/uni-app';
	import { dataReportFun } from '@/util/dataReport.js'

	const store = useStore();

	// 接收页面传参
	const props = ref({});
	onLoad((option) => {
		props.value = option;
		dataReportFun({
			event: "client.page_view",
		})
	})

	const hanldeNext = (item) => {
		store.workerItme = item;
		uni.navigateBack();
	}
</script>

<style scoped>
	.page{
		background: #F5F6F7;
		min-height: calc(100vh - 44px);
	}

</style>